Azure Maps Geolocation Service (stable:1.0)

2025/10/15 • 1 new methods

Geolocation_GetIPToLocation (new)
Description The `Get IP To Location` API is an HTTP `GET` request that returns the ISO country/region code for a given IP address. Developers can use this information to block or modify content based on the geographical location from which the application is accessed.
Reference Link ¶

⚼ Request

GET:  /geolocation/ip/{format}
{
x-ms-client-id: string ,
api-version: string ,
format: string ,
ip: string ,
}

⚐ Response (200)

{
countryRegion:
{
isoCode: string ,
}
,
ipAddress: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}